Click here to return to the VHDL Reference Guide. (last edit: 24. september 2012)

Shared Variable

Used to share information between processes. Intended for high level system modelling and for instrumenting code. The rules governing their use have not yet been standardised, so don't use them!

Syntax

  shared variable VariableName, ... : DataType
                                                       [:= Expression];
    

Where

See Declaration Not allowed in Process, Function or Procedure

Things to remember

Any non-trivial use of shared variables causes non-deterministic behaviour!

Synthesis

Shared variables cannot be synthesized.

See Also

Variable, Signal